﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameMain : MonoBehaviour {

    public static GameMain instance;
	void Awake ()
    {
        instance = this;
        UIManager.ShowUI<UIPanel_Start>();
        AudioController.PlayMusic("background music_all repeat");
	}

    void Update()
    {
        CommandController.instance.Update();
        NetUtil.instance.Update();
        UIManager.instance.Update();
        GameController.instance.Update();
        Schedule.instance.Update(Time.deltaTime);
    }
}
